package towerDefense.towers;

import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Shape;
import java.awt.image.BufferedImage;
import com.golden.gamedev.object.Sprite;


public class TargetableSprite extends Sprite
{

    private boolean amTargetted;
    protected Shape myTargetOutline;


    public TargetableSprite ()
    {
        super();
    }


    public TargetableSprite (BufferedImage image, double x, double y, Shape s)
    {
        super(image, x, y);
    }


    public TargetableSprite (BufferedImage image, Shape s)
    {
        super(image);
    }


    public TargetableSprite (double x, double y, Shape s)
    {
        super(x, y);
    }


    public void setTargetted (boolean state)
    {
        this.amTargetted = state;
    }


    public boolean isTargetted ()
    {
        return amTargetted;
    }


    @Override
    public void render (Graphics2D g)
    {
        super.render(g);

        
        if (amTargetted){
            g.setColor(Color.BLUE);
            g.drawOval((int)this.getX(), (int) this.getY(), width, height);
        }
    }

}
